package modelLayer;
import java.util.ArrayList;


/**
 * A person
 * 
 * @author Gruppe E
 * @version 1.0
 */
public class Person
{
    private String name;
    private String address;
    private String zip;
    private String phone;
    private String city;
    private ArrayList<Loan> loans;

    /**
     * Constructor for objects of class Person
     */
    public Person(String name, String address, String zip, String city, String phone)
    {
        this.name = name;
        this.address = address;
        this.zip = zip;
        this.phone = phone;
        this.city = city;
        loans = new ArrayList<Loan>();
    }
    
    /**
     * Method getLoans
     *
     * @return The return value
     */
    public ArrayList<Loan> getLoans()
    {
        return loans;
    }

    /**
     * Method addLoan
     *
     * @param l A parameter
     */
    public void addLoan(Loan l)
    {
        loans.add(l);
    }
    
    /**
     * Method setName
     *
     * @param name A parameter
     */
    public void setName(String name)
    {
        this.name = name;
    }
    
    /**
     * Method setAddress
     *
     * @param address A parameter
     */
    public void setAddress(String address)
    {
        this.address = address;
    }
    
    /**
     * Method setZip
     *
     * @param zip A parameter
     */
    public void setZip(String zip)
    {
        this.zip = zip;
    }
    
    /**
     * Method setPhone
     *
     * @param phone A parameter
     */
    public void setPhone(String phone)
    {
        this.phone = phone;
    }
    
    /**
     * Method getPhone
     *
     * @return The return value
     */
    public String getPhone()
    {
        return phone;
    }
    
    /**
     * Method setCity
     *
     * @param city A parameter
     */
    public void setCity(String city)
    {
        this.city = city;
    }
    
    /**
     * Method getAddress
     *
     * @return The return value
     */
    public String getAddress()
    {
        return address;
    }
    
    /**
     * Method getName
     *
     * @return The return value
     */
    public String getName()
    {
        return name;
    }
    
    /**
     * Method getZip
     *
     * @return The return value
     */
    public String getZip()
    {
        return zip;
    }
    
    /**
     * Method getCity
     *
     * @return The return value
     */
    public String getCity()
    {
        return city;
    }
}
